export default function tableScroll(el, binding) {
  let node = binding
  const table = el.querySelector('.el-table__body-wrapper')
  table.addEventListener('scroll', (e) => {
    if (e && e.target.scrollTop > 30 && node) {
      node.value()
    }
  })
}
